Skip to content

Conversation

SupernaviX
Copy link

Fixes #370

Today, the addMany action won't strip a file's only extension (unless the file starts with a dot). This PR makes it so that when stripExtensions is an array (which it is by default, and is documented as), the given extension gets stripped even if it's the only one. The idea is that now, Dockerfile.hbs gets turned into Dockerfile (and .gitignore.hbs gets turned into .gitignore etc etc).

I left existing behavior alone if stripExtensions is true, because that'd turn like package.json into package which is probably wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

addMany has strange behavior for files with only one extension
1 participant